<html>
<head>
<title>Docs For Class JLD_PearTools_ChannelCategories</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">PearTools</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                    
                              		  [ <a href="../classtrees_PearTools.html" class="menu">class tree: PearTools</a> ]
		  [ <a href="../elementindex_PearTools.html" class="menu">index: PearTools</a> ]
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_PearTools.html">PearTools</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../PearTools/_Channel.php.html">		Channel.php
		</a><br>
			<a href="../PearTools/_ChannelCategories.php.html">		ChannelCategories.php
		</a><br>
			<a href="../PearTools/_ChannelPackages.php.html">		ChannelPackages.php
		</a><br>
			<a href="../PearTools/_ChannelReleases.php.html">		ChannelReleases.php
		</a><br>
			<a href="../PearTools/_Package.php.html">		Package.php
		</a><br>
			<a href="../PearTools/_PearObject.php.html">		PearObject.php
		</a><br>
	  </div><br />
	subpackage <b>phing</b><br>  <div class="package">
			<a href="../PearTools/phing/_phing---ChannelBuildRestTask.php.html">		ChannelBuildRestTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelBuildTask.php.html">		ChannelBuildTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelCategoriesTask.php.html">		ChannelCategoriesTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelFindTask.php.html">		ChannelFindTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelPackagesTask.php.html">		ChannelPackagesTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelReleasesTask.php.html">		ChannelReleasesTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ChannelTask.php.html">		ChannelTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---PackageReadTask.php.html">		PackageReadTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---PackageUpdateTask.php.html">		PackageUpdateTask.php
		</a><br>
			<a href="../PearTools/phing/_phing---ReleaseExistsTask.php.html">		ReleaseExistsTask.php
		</a><br>
	  </div><br />
      
      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../PearTools/JLD_PearObject.html">JLD_PearObject</a><br />
	    		<a href="../PearTools/JLD_PearTools_Channel.html">JLD_PearTools_Channel</a><br />
	    		<a href="../PearTools/JLD_PearTools_ChannelCategories.html">JLD_PearTools_ChannelCategories</a><br />
	    		<a href="../PearTools/JLD_PearTools_ChannelPackages.html">JLD_PearTools_ChannelPackages</a><br />
	    		<a href="../PearTools/JLD_PearTools_ChannelReleases.html">JLD_PearTools_ChannelReleases</a><br />
	    		<a href="../PearTools/JLD_PearTools_Package.html">JLD_PearTools_Package</a><br />
	  </div>
  <div class="package">
	phing<br />	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelCategoriesTask.html">ChannelCategoriesTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelFindTask.html">ChannelFindTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelPackagesTask.html">ChannelPackagesTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelReleasesTask.html">ChannelReleasesTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelRestTask.html">ChannelRestTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ChannelTask.html">ChannelTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/PackageReadTask.html">PackageReadTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/PackageUpdateTask.html">PackageUpdateTask</a><br />
	    &nbsp;&nbsp;		<a href="../PearTools/phing/ReleaseExistsTask.html">ReleaseExistsTask</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: JLD_PearTools_ChannelCategories</h1>
Source Location: /ChannelCategories.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre>JLD_Object
   |
   --<a href="../PearTools/JLD_PearObject.html">JLD_PearObject</a>
      |
      --JLD_PearTools_ChannelCategories</pre><br />
<div class="description"></div><br /><br />






        
</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$baseCategories">$baseCategories</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$baseReleases">$baseReleases</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$baseREST">$baseREST</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$cats">$cats</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$restPathC">$restPathC</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#var$rootPath">$rootPath</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_consts">Constants</a></h3>
<ul>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#constthisVersion">thisVersion</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_c">tpl_c</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_c2">tpl_c2</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_i">tpl_i</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_p">tpl_p</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_p2">tpl_p2</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#consttpl_p3">tpl_p3</a></li>
  </ul>
</td>

<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodcreatePackageInfo">createPackageInfo</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodcreatePackageInstance">createPackageInstance</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodcreateReleaseSection">createReleaseSection</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodexistsCategory">existsCategory</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodinsertTopPackagesInfo">insertTopPackagesInfo</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodparse">parse</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodreadAll">readAll</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodsingleton">singleton</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#method__construct">__construct</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodupdateCategories">updateCategories</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodupdateCategoryInfo">updateCategoryInfo</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodupdatePackagesInfo">updatePackagesInfo</a></li>
    <li><a href="../PearTools/JLD_PearTools_ChannelCategories.html#methodwritePackageInfoFile">writePackageInfoFile</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>




<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../PearTools/JLD_PearObject.html">JLD_PearObject</a></h4>
<dl>
<dt>
  <a href="../PearTools/JLD_PearObject.html#var$magic_words">JLD_PearObject::$magic_words</a>
  </dt>
<dd>
   
</dd>
<dt>
  <a href="../PearTools/JLD_PearObject.html#var$std_magic_words">JLD_PearObject::$std_magic_words</a>
  </dt>
<dd>
   
</dd>
<dt>
  <a href="../PearTools/JLD_PearObject.html#var$vars">JLD_PearObject::$vars</a>
  </dt>
<dd>
   
</dd>
</dl>
</div>
</td>

<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../PearTools/JLD_PearObject.html">JLD_PearObject</a></h4>
<dl>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodaddRestDirectory">JLD_PearObject::addRestDirectory()</a>
  </dt>
  <dd>
    Adds a specific REST directory in the filesystem
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodbuildFileSystemRestPath">JLD_PearObject::buildFileSystemRestPath()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodcloseTag">JLD_PearObject::closeTag()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodexpandList">JLD_PearObject::expandList()</a>
  </dt>
  <dd>
    Expand list
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodgetTemplate">JLD_PearObject::getTemplate()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodgetVar">JLD_PearObject::getVar()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodinitVars">JLD_PearObject::initVars()</a>
  </dt>
  <dd>
    Batch initialization
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodopenTag">JLD_PearObject::openTag()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodreplaceMagicWords">JLD_PearObject::replaceMagicWords()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodreplaceMagicWords2">JLD_PearObject::replaceMagicWords2()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodsetVar">JLD_PearObject::setVar()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodtoXML">JLD_PearObject::toXML()</a>
  </dt>
  <dd>
    Generates an XML file from a XML-ish array structure.
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodtoXMLlist">JLD_PearObject::toXMLlist()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#methodwriteFile">JLD_PearObject::writeFile()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#method__get">JLD_PearObject::__get()</a>
  </dt>
  <dd>
    
  </dd>
    <dt>
    <a href="../PearTools/JLD_PearObject.html#method__set">JLD_PearObject::__set()</a>
  </dt>
  <dd>
    
  </dd>
  </dl>
</div>
</td>

</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line 16]<br />
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$baseCategories"></a>
	<p></p>
	<h4>static $baseCategories = <span class="value">&nbsp;'/c'</span></h4>
	<p>[line 28]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$baseReleases"></a>
	<p></p>
	<h4>static $baseReleases = <span class="value">&nbsp;'/r'</span></h4>
	<p>[line 29]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$baseREST"></a>
	<p></p>
	<h4>$baseREST = <span class="value">&nbsp;null</span></h4>
	<p>[line 31]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$cats"></a>
	<p></p>
	<h4>$cats = <span class="value">array()</span></h4>
	<p>[line 35]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$restPathC"></a>
	<p></p>
	<h4>$restPathC = <span class="value">&nbsp;null</span></h4>
	<p>[line 32]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$rootPath"></a>
	<p></p>
	<h4>$rootPath = <span class="value">&nbsp;null</span></h4>
	<p>[line 30]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>mixed</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
  <hr />
	<a name="methodsingleton"></a>
	<h3>static method singleton <span class="smalllinenumber">[line 41]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>static void singleton(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>

  <hr />
	<a name="methodcreatePackageInfo"></a>
	<h3>method createPackageInfo <span class="smalllinenumber">[line 190]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void createPackageInfo(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates a new packageinfo.xml file from scratch.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreatePackageInstance"></a>
	<h3>method createPackageInstance <span class="smalllinenumber">[line 205]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void createPackageInstance(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates a &lt;pi&gt; section.<br /><br /><p>The &lt;r&gt; sections should be ready before using this method.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodcreateReleaseSection"></a>
	<h3>method createReleaseSection <span class="smalllinenumber">[line 214]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void createReleaseSection(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Creates a release section for inclusion in  the 'packageinfo.xml' file.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodexistsCategory"></a>
	<h3>method existsCategory <span class="smalllinenumber">[line 70]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void existsCategory(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Returns TRUE if the specified category exists  in the current instance.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodinsertTopPackagesInfo"></a>
	<h3>method insertTopPackagesInfo <span class="smalllinenumber">[line 231]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void insertTopPackagesInfo(

&$contents)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Inserts $contents in the top level template<br /><br /><p>for the 'packagesinfo.xml' file</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>&$contents</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodparse"></a>
	<h3>method parse <span class="smalllinenumber">[line 243]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void parse(

&$contents)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Parses an XML file.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>&$contents</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodreadAll"></a>
	<h3>method readAll <span class="smalllinenumber">[line 53]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void readAll(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Reads all the categories from the directory structure  in the REST channel.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__construct"></a>
	<h3>constructor __construct <span class="smalllinenumber">[line 37]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>JLD_PearTools_ChannelCategories __construct(

$version)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>$version</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdateCategories"></a>
	<h3>method updateCategories <span class="smalllinenumber">[line 78]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void updateCategories(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Updates the 'categories.xml' file according to the  registered categories contained in the class instance.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdateCategoryInfo"></a>
	<h3>method updateCategoryInfo <span class="smalllinenumber">[line 115]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void updateCategoryInfo(

$name)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Updates / creates the 'info.xml' file associated with a category.<br /><br /><p>Make sure the category directory exists prior to using this method.  &lt;n&gt;$category_name$&lt;/n&gt;  &lt;c&gt;$channel_name$&lt;/c&gt;  &lt;a&gt;$category_name$&lt;/a&gt; &lt;!-- alias? --&gt;  &lt;d&gt;$description$&lt;/d&gt;</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>$name</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodupdatePackagesInfo"></a>
	<h3>method updatePackagesInfo <span class="smalllinenumber">[line 134]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void updatePackagesInfo(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Updates / creates the 'packagesinfo.xml' file in the REST structure.<br /><br /><p>Must read in the current file, parse it &amp; then add the specified information.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodwritePackageInfoFile"></a>
	<h3>method writePackageInfoFile <span class="smalllinenumber">[line 222]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>void writePackageInfoFile(

$categoryName, 
&$r)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Writes a complete 'packageinfo.xml' file.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>$categoryName</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">&nbsp;&nbsp;</td>
        <td><b>&$r</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />

<hr />
<a name="class_constss"></a>
<h3>Class Constants</h3>
<div class="tags">
	<a name="constthisVersion"></a>
	<p></p>
	<h4>thisVersion = <span class="value">&nbsp;'$Id:&nbsp;ChannelCategories.php&nbsp;242&nbsp;2007-11-15&nbsp;16:38:01Z&nbsp;JeanLou.Dupont&nbsp;$'</span></h4>
	<p>[line 18]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_c"></a>
	<p></p>
	<h4>tpl_c = <span class="value">&nbsp;'/Templates/categories.xml.tpl'</span></h4>
	<p>[line 19]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_c2"></a>
	<p></p>
	<h4>tpl_c2 = <span class="value">&nbsp;'/Templates/categories.xml.tpl2'</span></h4>
	<p>[line 20]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_i"></a>
	<p></p>
	<h4>tpl_i = <span class="value">&nbsp;'/Templates/info.xml.tpl'</span></h4>
	<p>[line 22]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_p"></a>
	<p></p>
	<h4>tpl_p = <span class="value">&nbsp;'/Templates/packagesinfo.xml.tpl'</span></h4>
	<p>[line 23]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_p2"></a>
	<p></p>
	<h4>tpl_p2 = <span class="value">&nbsp;'/Templates/packagesinfo.xml.tpl2'</span></h4>
	<p>[line 24]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="consttpl_p3"></a>
	<p></p>
	<h4>tpl_p3 = <span class="value">&nbsp;'/Templates/packagesinfo.xml.tpl3'</span></h4>
	<p>[line 25]</p>
  
  <br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 15 Nov 2007 14:26:26 -0500 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.0</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>